package com.wwwarehouse.usercenter.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by ShineF on 2017/9/25 0025.
 */

public class DistributePermissionArrayBean implements Parcelable {

    private String detailMsg;
    private String authName;
    private String userName;

    public DistributePermissionArrayBean(String detailMsg, String authName, String userName) {
        this.detailMsg = detailMsg;
        this.authName = authName;
        this.userName = userName;
    }

    public DistributePermissionArrayBean(String detailMsg, String authName) {
        this.detailMsg = detailMsg;
        this.authName = authName;
    }

    public DistributePermissionArrayBean(String userName) {
        this.userName = userName;
    }

    public String getDetailMsg() {
        return detailMsg;
    }

    public void setDetailMsg(String detailMsg) {
        this.detailMsg = detailMsg;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.detailMsg);
        dest.writeString(this.authName);
        dest.writeString(this.userName);
    }

    protected DistributePermissionArrayBean(Parcel in) {
        this.detailMsg = in.readString();
        this.authName = in.readString();
        this.userName = in.readString();
    }

    public static final Parcelable.Creator<DistributePermissionArrayBean> CREATOR = new Parcelable.Creator<DistributePermissionArrayBean>() {
        @Override
        public DistributePermissionArrayBean createFromParcel(Parcel source) {
            return new DistributePermissionArrayBean(source);
        }

        @Override
        public DistributePermissionArrayBean[] newArray(int size) {
            return new DistributePermissionArrayBean[size];
        }
    };
}
